const layout = () => import('@/layout')

const compRouter = {
  name: '组件演示',
  path: '/comp',
  component: layout,
  redirect: '/comp/charts',
  mate: {
    title: '组件演示',
    icon: 'order'
  },
  children: [
    {
      name: '图表可视化',
      path: 'charts',
      component: () => import('@/views/comp/chart.vue')
    },
    {
      name: '图片上传',
      path: 'uploadImage',
      component: () => import('@/components/uploadImage.vue')
    },
    {
      name: 'Excel操作',
      path: 'excel',
      component: () => import('@/components/excel.vue')
    },
    {
      name: '拖拽操作',
      path: 'drag',
      component: () => import('@/components/drag.vue')
    },
    {
      name: 'tab栏',
      path: 'tab',
      component: () => import('@/components/tab.vue')
    },
    {
      name: '流程图',
      path: 'flow',
      component: () => import('@/components/flow')
    }
  ]
}

export default compRouter
